package com.mall.group_booking.mapper;

import com.mall.entity.groupbooking.GbActivity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/30 8:51
 */
@Mapper
public interface BookingActivityMapper {
    /**
     * 根据时间查询符合条件的拼团
     * @param time 时间
     * @return 拼团商品列表
     */
    List<GbActivity> findByTime(String time);

    void addActivity(GbActivity activity);

    List<GbActivity> findPage(GbActivity activity);

    void updateStatusById(
            @Param("id") Long id,
            @Param("status") String status);


}
